package Practice05;

public class School implements CompurerAverage {
   //重写public double average(double x[])方法,返回数组x[]的元素的算术平均
    public double average(double[] x) {
        double sum = 0;
        for (double v : x) {
            sum += v;
        }
        return sum / x.length;
    }
}